package cn.csc.module.distribute.controller.admin.order.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 分销订单记录 Excel 导出 Request VO", description = "参数和 DistributeOrderPageReqVO 是一致的")
@Data
public class DistributeOrderExportReqVO {

    @ApiModelProperty(value = "分销员用户ID")
    private Long userId;

    @ApiModelProperty(value = "订单ID")
    private BigInteger orderId;

    @ApiModelProperty(value = "订单子项ID")
    private BigInteger orderItemId;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "分佣比例")
    private Integer commissionRate;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
